package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.google.common.collect.Maps;
import com.kly.user.db.dao.UserGreetingSendLogDao;
import com.kly.user.db.entity.UserGreetingSendLogEntity;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
* User: linqu
* Date: 2023-12-04
* Time: 15:22:55.498
*/

@Repository
public class UserGreetingSendLogDaoImpl extends AbstractBaseMapper<UserGreetingSendLogEntity> implements UserGreetingSendLogDao {
    @Override
    public int countSendGreegingNum(String fromUserCode, String toUserCode) {
        Map<String, Object> params = Maps.newHashMap();
        params.put("fromUserCode", fromUserCode);
        params.put("toUserCode", toUserCode);
        return this.getSqlSession().selectOne(this.getStatement("countSendGreegingNum"));
    }
}